package com.kun.entity;

import com.kun.util.PaginationUtil;
import java.util.ArrayList;
import java.util.List;

public class RecommendedExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected PaginationUtil pagination;

    public RecommendedExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPagination(PaginationUtil pagination) {
        this.pagination=pagination;
    }

    public PaginationUtil getPagination() {
        return pagination;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRecommendedidIsNull() {
            addCriterion("recommendedId is null");
            return (Criteria) this;
        }

        public Criteria andRecommendedidIsNotNull() {
            addCriterion("recommendedId is not null");
            return (Criteria) this;
        }

        public Criteria andRecommendedidEqualTo(Integer value) {
            addCriterion("recommendedId =", value, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidNotEqualTo(Integer value) {
            addCriterion("recommendedId <>", value, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidGreaterThan(Integer value) {
            addCriterion("recommendedId >", value, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidGreaterThanOrEqualTo(Integer value) {
            addCriterion("recommendedId >=", value, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidLessThan(Integer value) {
            addCriterion("recommendedId <", value, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidLessThanOrEqualTo(Integer value) {
            addCriterion("recommendedId <=", value, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidIn(List<Integer> values) {
            addCriterion("recommendedId in", values, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidNotIn(List<Integer> values) {
            addCriterion("recommendedId not in", values, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidBetween(Integer value1, Integer value2) {
            addCriterion("recommendedId between", value1, value2, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andRecommendedidNotBetween(Integer value1, Integer value2) {
            addCriterion("recommendedId not between", value1, value2, "recommendedid");
            return (Criteria) this;
        }

        public Criteria andUrlIsNull() {
            addCriterion("url is null");
            return (Criteria) this;
        }

        public Criteria andUrlIsNotNull() {
            addCriterion("url is not null");
            return (Criteria) this;
        }

        public Criteria andUrlEqualTo(String value) {
            addCriterion("url =", value, "url");
            return (Criteria) this;
        }

        public Criteria andUrlNotEqualTo(String value) {
            addCriterion("url <>", value, "url");
            return (Criteria) this;
        }

        public Criteria andUrlGreaterThan(String value) {
            addCriterion("url >", value, "url");
            return (Criteria) this;
        }

        public Criteria andUrlGreaterThanOrEqualTo(String value) {
            addCriterion("url >=", value, "url");
            return (Criteria) this;
        }

        public Criteria andUrlLessThan(String value) {
            addCriterion("url <", value, "url");
            return (Criteria) this;
        }

        public Criteria andUrlLessThanOrEqualTo(String value) {
            addCriterion("url <=", value, "url");
            return (Criteria) this;
        }

        public Criteria andUrlLike(String value) {
            addCriterion("url like", value, "url");
            return (Criteria) this;
        }

        public Criteria andUrlNotLike(String value) {
            addCriterion("url not like", value, "url");
            return (Criteria) this;
        }

        public Criteria andUrlIn(List<String> values) {
            addCriterion("url in", values, "url");
            return (Criteria) this;
        }

        public Criteria andUrlNotIn(List<String> values) {
            addCriterion("url not in", values, "url");
            return (Criteria) this;
        }

        public Criteria andUrlBetween(String value1, String value2) {
            addCriterion("url between", value1, value2, "url");
            return (Criteria) this;
        }

        public Criteria andUrlNotBetween(String value1, String value2) {
            addCriterion("url not between", value1, value2, "url");
            return (Criteria) this;
        }

        public Criteria andCirclepictureIsNull() {
            addCriterion("circlePicture is null");
            return (Criteria) this;
        }

        public Criteria andCirclepictureIsNotNull() {
            addCriterion("circlePicture is not null");
            return (Criteria) this;
        }

        public Criteria andCirclepictureEqualTo(String value) {
            addCriterion("circlePicture =", value, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureNotEqualTo(String value) {
            addCriterion("circlePicture <>", value, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureGreaterThan(String value) {
            addCriterion("circlePicture >", value, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureGreaterThanOrEqualTo(String value) {
            addCriterion("circlePicture >=", value, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureLessThan(String value) {
            addCriterion("circlePicture <", value, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureLessThanOrEqualTo(String value) {
            addCriterion("circlePicture <=", value, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureLike(String value) {
            addCriterion("circlePicture like", value, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureNotLike(String value) {
            addCriterion("circlePicture not like", value, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureIn(List<String> values) {
            addCriterion("circlePicture in", values, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureNotIn(List<String> values) {
            addCriterion("circlePicture not in", values, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureBetween(String value1, String value2) {
            addCriterion("circlePicture between", value1, value2, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andCirclepictureNotBetween(String value1, String value2) {
            addCriterion("circlePicture not between", value1, value2, "circlepicture");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNull() {
            addCriterion("book_id is null");
            return (Criteria) this;
        }

        public Criteria andBookIdIsNotNull() {
            addCriterion("book_id is not null");
            return (Criteria) this;
        }

        public Criteria andBookIdEqualTo(Integer value) {
            addCriterion("book_id =", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotEqualTo(Integer value) {
            addCriterion("book_id <>", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThan(Integer value) {
            addCriterion("book_id >", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("book_id >=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThan(Integer value) {
            addCriterion("book_id <", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdLessThanOrEqualTo(Integer value) {
            addCriterion("book_id <=", value, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdIn(List<Integer> values) {
            addCriterion("book_id in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotIn(List<Integer> values) {
            addCriterion("book_id not in", values, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdBetween(Integer value1, Integer value2) {
            addCriterion("book_id between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andBookIdNotBetween(Integer value1, Integer value2) {
            addCriterion("book_id not between", value1, value2, "bookId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdIsNull() {
            addCriterion("avtivity_id is null");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdIsNotNull() {
            addCriterion("avtivity_id is not null");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdEqualTo(Integer value) {
            addCriterion("avtivity_id =", value, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdNotEqualTo(Integer value) {
            addCriterion("avtivity_id <>", value, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdGreaterThan(Integer value) {
            addCriterion("avtivity_id >", value, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("avtivity_id >=", value, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdLessThan(Integer value) {
            addCriterion("avtivity_id <", value, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdLessThanOrEqualTo(Integer value) {
            addCriterion("avtivity_id <=", value, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdIn(List<Integer> values) {
            addCriterion("avtivity_id in", values, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdNotIn(List<Integer> values) {
            addCriterion("avtivity_id not in", values, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdBetween(Integer value1, Integer value2) {
            addCriterion("avtivity_id between", value1, value2, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andAvtivityIdNotBetween(Integer value1, Integer value2) {
            addCriterion("avtivity_id not between", value1, value2, "avtivityId");
            return (Criteria) this;
        }

        public Criteria andWishIdIsNull() {
            addCriterion("wish_id is null");
            return (Criteria) this;
        }

        public Criteria andWishIdIsNotNull() {
            addCriterion("wish_id is not null");
            return (Criteria) this;
        }

        public Criteria andWishIdEqualTo(Integer value) {
            addCriterion("wish_id =", value, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdNotEqualTo(Integer value) {
            addCriterion("wish_id <>", value, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdGreaterThan(Integer value) {
            addCriterion("wish_id >", value, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wish_id >=", value, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdLessThan(Integer value) {
            addCriterion("wish_id <", value, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdLessThanOrEqualTo(Integer value) {
            addCriterion("wish_id <=", value, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdIn(List<Integer> values) {
            addCriterion("wish_id in", values, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdNotIn(List<Integer> values) {
            addCriterion("wish_id not in", values, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdBetween(Integer value1, Integer value2) {
            addCriterion("wish_id between", value1, value2, "wishId");
            return (Criteria) this;
        }

        public Criteria andWishIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wish_id not between", value1, value2, "wishId");
            return (Criteria) this;
        }

        public Criteria andToSortIsNull() {
            addCriterion("to_sort is null");
            return (Criteria) this;
        }

        public Criteria andToSortIsNotNull() {
            addCriterion("to_sort is not null");
            return (Criteria) this;
        }

        public Criteria andToSortEqualTo(Integer value) {
            addCriterion("to_sort =", value, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortNotEqualTo(Integer value) {
            addCriterion("to_sort <>", value, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortGreaterThan(Integer value) {
            addCriterion("to_sort >", value, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("to_sort >=", value, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortLessThan(Integer value) {
            addCriterion("to_sort <", value, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortLessThanOrEqualTo(Integer value) {
            addCriterion("to_sort <=", value, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortIn(List<Integer> values) {
            addCriterion("to_sort in", values, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortNotIn(List<Integer> values) {
            addCriterion("to_sort not in", values, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortBetween(Integer value1, Integer value2) {
            addCriterion("to_sort between", value1, value2, "toSort");
            return (Criteria) this;
        }

        public Criteria andToSortNotBetween(Integer value1, Integer value2) {
            addCriterion("to_sort not between", value1, value2, "toSort");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}